package pers.cz.node;

import pers.cz.mxgraph.MxCell;
import pers.cz.thread.ThreadUtils;

import java.util.HashMap;

/**
 * @program: Reids
 * @description: 判断节点
 * @author: Cheng Zhi
 * @create: 2023-01-09 12:33
 **/
public class JudgeNode extends AbstractNode {

    public JudgeNode(MxCell mxCell) {
        super(mxCell);
    }

    @Override
    public void verify() {

    }

    @Override
    public void runNode(NodeCallBack callBack) throws Exception {
        System.out.println(mxCell.getName() + "--" + mxCell.getId() + ">运行中....");
        ThreadUtils.doSleep(10000);
        System.out.println(mxCell.getName() + "--" + mxCell.getId() +">运行结束");

    }

    @Override
    public String getName() {
        return mxCell.getName();
    }
}
